from django.urls import path
from loadApp.views import UserLoginView,UserRegisterView,UserActivateView,UserLogoutView,UserPasswordForgetView,UserPasswordVerificationView,UserPasswordRestView
app_name = 'loadApp'  # 添加这一行来定义 app_name
urlpatterns = [
    path('user-sign-in/', UserLoginView.as_view(),name="login"),

    path('user-sign-up/', UserRegisterView.as_view(), name="register"),

    # 活跃验证
    path('user-sign-up/activate/<str:activate_code>/', UserActivateView.as_view(), name="activate"),

    # 退出登录
    path('logout/', UserLogoutView.as_view(), name="logout"),

    # 密码找回
    path('forget/', UserPasswordForgetView.as_view(), name="forget"),

    path('forget/verification/<str:activate_code>', UserPasswordVerificationView.as_view(), name="password-verification"),
    path('forget/reset/', UserPasswordRestView.as_view(), name="password-reset"),

]
